package org.divineryang.mapper;

import org.apache.ibatis.annotations.Param;
import org.divineryang.model.dto.system.SysUserDto;
import org.divineryang.model.entity.system.SysUser;

import java.util.List;

/**
 * @program new-bee
 * @Description
 * @Author Diviner Yang
 * @Date 2024/04/18 15:06
 * @Version 1.0
 */
public interface SysUserMapper {
    void addSysUser(SysUser sysUser);

    SysUser selectByUserName(@Param("username") String userName);

    List<SysUser> findByPage(SysUserDto sysUserDto);

    void saveSysUser(SysUser sysUser);

    void updateSysUser(SysUser sysUser);

    void deleteById(Long userId);
}
